﻿namespace ShellNavigator.Client.Utils
{
  #region

  using System.Linq;

  #endregion

  /// <summary>
  ///     TODO: Update summary.
  /// </summary>
  public static class StringExtensions
  {
    #region Public Methods

    /// <summary>
    ///     Equalses the specified source.
    /// </summary>
    /// <param name = "source">The source.</param>
    /// <param name = "values">The values.</param>
    /// <returns>Returns true if source is equeal to any value</returns>
    public static bool EqualsAny(this string source, params string[] values)
    {
      return values.Any(value => value.Equals(source));
    }

    #endregion
  }
}